package com.departmentstore.repository;

import com.departmentstore.entity.Employee;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeRepository extends JpaRepository<Employee, String> {
    // 根据部门ID查找员工
    List<Employee> findByDepartment(String departmentId);
    
    // 根据员工姓名查找员工
    List<Employee> findByName(String name);

} 